﻿using System.Collections.Generic;

namespace XRM.Security.WebUI.Models.Department
{
    public class DepartmentListItem
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public List<string> Addresses { get; set; }
        public int UsersCount { get; set; }
        public int WorkedUsersCount { get; set; }
        public int RequestsOpenCount { get; set; }
        public bool CanDelete
        {
            get
            {
                return (WorkedUsersCount == 0) && (RequestsOpenCount == 0);
            }
        }
    }
}